<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>WaterHeight</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">WaterHeight()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>WaterHeight</b></font>(#Camera, x, y)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Gets the current water height at the specified position. <a href="createwater.html">CreateWater()</a> has to be called before calling this function. 
As water can have waves, the height isn't always the same accross the water. This function can be useful to allow an 
object to float over the water. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Camera</i></td>
<td width="90%"> 
 
The camera to use. 

 

</td></tr>
<tr><td><i>x, y</i></td>
<td> 
 
The coordinates to use get the height. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The absolute water height, in world units. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="createwater.html">CreateWater()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=watercolor.html>WaterColor()</a> - <a href="index.html">Engine3D Index</a> - <a href="worldcollisionappliedimpulse.html">WorldCollisionAppliedImpulse()</a> -&gt;<br><br>

</body></html>